﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace DHAA.Areas.Administrator.Models
{
    public class CategoryModels
    {
    
        [Required(ErrorMessage = "Category ID cannot be empty")]
        [DisplayName("Category ID")]
        public int CategoryID { get; set; }

        [Required(ErrorMessage = "Category's name cannot be empty")]
        [DisplayName("Category's name")]
        public string CategoryName { get; set; }

        [Required(ErrorMessage = "Parent ID cannot be empty")]
        [DisplayName("Parent ID")]
        public int ParentID { get; set; }

        [DisplayName("Product Image")]
        public string Image { get; set; }       

        [DisplayName("Description")]
        public string Description { get; set; }

        public int Level { get; set; }

        public string ParentName { get; set; }

        public int ChildCount { get; set; }

        public int ProductCount { get; set; }



    }
}
